/* 全局元素样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f9;
    margin: 0;
    padding: 0;
}

#container {
    max-width: 90%;
    width: 630px;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #4A90E2;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto 0;
}

h1 {
    text-align: center;
    color: #4A90E2;
}

/* 表单控制样式 */
.form-control,
.form-select {
    width: 100%; /* 为小屏幕设定宽度 */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #BDC3C7;
    border-radius: 4px;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

/* 表单聚焦时的样式 */
.form-control:focus,
.form-select:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, .2);
}

/* 表单标签样式 */
.form-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* 调整下拉选择框和输入框的布局 */
.mb-3.d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 选择框样式 */
.form-select {
    flex-grow: 0; /* 防止选择框拉伸 */
    margin-right: 10px; /* 添加右边距 */
}

/* 输入框样式 */
.form-control {
    flex-grow: 1; /* 输入框拉伸以填充剩余空间 */
}

/* 搜索选项卡样式 */
.search-tab {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    border-bottom: 2px solid #0084ff;
}

.search-tab li {
    padding: 10px 20px;
    color: #0084ff;
    cursor: pointer;
    margin-right: 10px;
}

.search-tab li.on {
    border-bottom: 2px solid #0084ff;
}

/* 搜索条件样式 */
.advanced-search-default,
.search-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.search-condition label {
    margin-bottom: 0;
}

.search-condition label > span {
    padding: 0 10px;
}

/* 自定义按钮样式 */
.custom-button {
    background-color: #4A90E2;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

.custom-button:hover {
    background-color: #357ABD;
}

/* 表单开关样式 */
.form-check.form-switch {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.form-check-input {
    width: auto;
}

/* 搜索条件的选择框和输入框样式 */
#searchConditions .form-select,
#searchConditions .form-control {
    width: auto; /* 非小屏幕设定宽度 */
    flex-grow: 0;
    margin-right: 10px; /* 添加右边距 */
}

/* 添加条件按钮样式 */
#addCondition {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: white;
    margin-top: 20px; /* 对齐上边距 */
    margin-left: 10px; /* 对齐左边距 */
}

#addCondition:hover {
    background-color: #4cae4c;
}

/* 响应式设计：小屏幕样式调整 */
@media (max-width: 768px) {
    .search-condition {
        flex-direction: column;
        gap: 0;
    }

    .search-condition label > span {
        display: none;
    }

    #searchConditions .form-select,
    #searchConditions .form-control {
        width: 100%; /* 小屏幕设定宽度为100% */
        flex-grow: 1;
    }

    #addCondition {
        margin-left: 0; /* 小屏幕移除左边距 */
    }
}

/* 表单选择框和输入框组合样式 */
.form-select-and-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单检查样式 */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 删除按钮样式 */
.custom-delete-btn {
    background-color: #f44336;
    color: #ffffff;
    padding: 4px 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    text-align: center;
    margin-left: 10px; /* 对齐左边距 */
}

.custom-delete-btn:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
}

/* 工具类样式 */
.mt-4 {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 15px;
}
